package csu.rjxyg.factory;

import java.io.File;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

import csu.rjxyg.factory.core.BaseFactory;
import csu.rjxyg.factory.core.BeanFactory;
import csu.rjxyg.factory.core.UtilFactory;
import csu.rjxyg.util.FileUtil;
import csu.rjxyg.util.LogUtil;


public class XMLBeanFactory extends BeanFactory {
	private static LogUtil log = UtilFactory.getLogUtil(XMLBeanFactory.class);
	private static FileUtil file  = UtilFactory.getFileUtil(BaseFactory.FILE_NAME);
	
	@Override
	public Object getBean(String beanName){
		try{
			return file.getBean(beanName);
		}catch(Exception e){
			e.printStackTrace();
			log.info(e.getMessage());
		}
		 return null;
	}
}
